package com.xx.bysj.service;

import com.xx.bysj.dto.HnOrder;
import com.xx.bysj.dto.HnOrderInfo;
import com.xx.bysj.utils.Result;
import org.springframework.security.core.Authentication;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface OrderService {
    Result addOrder(HnOrderInfo order, Authentication authentication, HttpServletRequest request, List<String> imgList);

    Result uploadMongoDb(MultipartFile[] file, HttpServletRequest request, Authentication authentication);

    void mongoDbShow(String id, HttpServletResponse response);

    Result query(HnOrder order, Authentication authentication, int page, int limit);

    Result cancel(String orderNum, Authentication authentication);

    Result edit(HnOrderInfo order, Authentication authentication, List<String> imgList);

    Result queryReceive(HnOrder order, Authentication authentication, int page, int limit);

    Result finish(String orderNum, Authentication authentication);
}
